package java19_1_8.interface_test.capacity;

/**
 * 狗狗具备跑的行为
 * @author yuisama
 * @date 2022/01/08 12:01
 **/
public class Dog extends Animal implements IRun{
    public Dog(String name) {
        super(name);
    }
    @Override
    public void eat(String food) {
        System.out.println("狗狗" + this.name + "正在吃"+ food);
    }

    @Override
    public void run() {
        System.out.println("狗狗" + this.name + "正在撒欢的跑~~");
    }
}